({
    baseUrl: "./ancestor",
    optimize: "none",
    name: "epg",
    mainConfigFile: [],
    out: "./epg.js",
    deps: [],
    packages: [],
    exclude: [],
    onBuildRead: function(moduleName, path, contents) {
        var result = contents;
        
        if ('qui/_qui' !== moduleName){
        	result = contents.replace(/qui(?=\s*\(\s*\[)/ig, 'require')
        	.replace(/qui(?=\s*\()/ig, 'define');
		}
		
        if ('jquery' === moduleName || 'jqueryui' === moduleName) {
            result = [
                '/*QUI_AMD_FIX_START*/;window.$$define=window.define; window.define=null;/*QUI_AMD_FIX_END*/',
                result,
                '/*QUI_AMD_FIX_START*/;window.define=window.$$define;define("' + moduleName + '", [],  function(){});delete window.$$define;/*QUI_AMD_FIX_END*/'
            ].join('')
        }
        return result;
    }
})